﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace JLPT.Models.Objects
{
    public class QuestionSub
    {

        public int Id { get; set; }
        public string Name { get; set; }

        public int QuestionId { get; set; }
        public virtual Question Question { get; set; }

        public virtual IList<QuestionDetail> QuestionDetails { get; set; }

        [Required] //Rember to comment out this when recreate database, open when run to validate model
        [NotMapped]
        public string SelectedAnswer { set; get; }
    }
}